import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import {resolve} from  "path"


// https://vitejs.dev/config/
export default defineConfig({
  //配置项
  plugins: [vue(),vueJsx()],
  //配置路径别名
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"),
    },
    extensions: [".ts", ".vue", ".js", ".jsx", ".tsx"], // 导入时想要省略的扩展名列表。
  },
  server:{
    proxy:{
      "/app-dev":{
        target: "https://www.dance365.com",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/app-dev/, ""),       
      }
    }
  }
})
